Repository navigation
[New Integration] Add Chargeback integration (0.6.0) - #22427
Conversation
449d3df to
fc97ab7
Compare
Elastic Docs Style Checker (Vale)Summary: 2 warnings, 4 suggestions found
|
| File | Line | Rule | Message |
|---|---|---|---|
| packages/chargeback/data_stream/lookup/fields/fields.yml | 258 | Elastic.Latinisms | Latin terms and abbreviations are a common source of confusion. Use 'for example' instead of 'e.g'. |
| packages/chargeback/manifest.yml | 47 | Elastic.DontUse | Don't use 'and/or'. Choose a more precise or reader-focused term. |
💡 Suggestions (4): Optional style improvements. Apply when helpful.
| File | Line | Rule | Message |
|---|---|---|---|
| packages/chargeback/changelog.yml | 18 | Elastic.WordChoice | Consider using 'deactivated, deselected, hidden, turned off, unavailable' instead of 'disabled', unless the term is in the UI. |
| packages/chargeback/changelog.yml | 21 | Elastic.WordChoice | Consider using 'deactivated, deselected, hidden, turned off, unavailable' instead of 'disabled', unless the term is in the UI. |
| packages/chargeback/changelog.yml | 34 | Elastic.Wordiness | Consider using 'all' instead of 'all of '. |
| packages/chargeback/manifest.yml | 99 | Elastic.WordChoice | Consider using 'deactivate, deselect, hide, turn off' instead of 'Disable', unless the term is in the UI. |
The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.
left a comment
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical compatibility, migration, and collection defects can halt existing pipelines and produce missing, duplicated, or incorrectly allocated chargeback costs.
27 open issues
Publish billing configuration updates independently of telemetry deduplication · New Include supported Observability and Security projects in realized pools · New Normalize billing deployment IDs to telemetry resource IDs · New Use the billing API host for credit requests · New Preserve existing rates and non-overlapping configuration periods · New Stop fabricating daily deltas from cumulative counters · New Replace unsupported CCS CAT fallback with a valid search · New Calculate per-index activity from counter differences · New Retry failed daily harvests instead of marking them complete · New Preserve legacy ESS Billing sources during upgrades · New Prevent duplicate billing in the stock dashboard data view · New Migrate existing lookup mappings for newly added fields · New Map event.ingested for on-prem billing transform sync · New Retain legacy node-stat sources for utilization · New Preserve legacy monitoring-index sources without duplicate telemetry · New Avoid alias collision with the existing monitoring-indices index · New Allow on-prem collection without Cloud credentials · New Collect credit snapshots independently of daily billing rows · New Classify on-prem billing rows as on-premises · New Use unknown coordinates for unmapped billing regions · New
And 7 more that still need to be addressed.
What changed in this PR
Updates Chargeback to 0.6.0 with native Elastic Agent CEL collection, reducing its reliance on separate billing and monitoring collectors while retaining its transform-based cost-allocation architecture.
Changes:
- Adds billing, index-usage, and node-utilization streams with shared credentials and per-stream Fleet settings.
- Updates continuous transforms and lookup fields, adding aliases intended for stock ESS Billing and Elasticsearch Consumption dashboards.
- Redesigns the Configuration dashboard and updates setup documentation, retention settings, and release metadata.
| File | Description |
|---|---|
packages/chargeback/manifest.yml |
Bumps the version and defines shared CEL connection settings. |
packages/chargeback/lifecycle.yml |
Defines 365-day package retention. |
packages/chargeback/kibana/dashboard/chargeback-7ec9743a-ccfa-43d2-8311-2f25893dadae.json |
Replaces configuration charts with coverage, deployment status, and setup panels. |
packages/chargeback/elasticsearch/transform/cluster_tier_contribution/transform.yml |
Switches tier aggregation to native usage collection. |
packages/chargeback/elasticsearch/transform/cluster_tier_and_ds_contribution/transform.yml |
Updates detailed usage aggregation and adds monitoring aliases. |
packages/chargeback/elasticsearch/transform/cluster_tier_and_ds_contribution/fields/fields.yml |
Adds correlation keys and monitoring-compatible fields. |
packages/chargeback/elasticsearch/transform/cluster_deployment_contribution/transform.yml |
Updates deployment usage sources and synchronization. |
packages/chargeback/elasticsearch/transform/cluster_datastream_contribution/transform.yml |
Updates data-stream usage sources and synchronization. |
packages/chargeback/elasticsearch/transform/cluster_capacity_utilization/transform.yml |
Uses native node samples for daily utilization aggregation. |
packages/chargeback/elasticsearch/transform/chargeback_conf_lookup/transform.yml |
Continuously aggregates settings from the three collection streams. |
packages/chargeback/elasticsearch/transform/billing_realized_pool/transform.yml |
Updates allocatable billing sources and synchronization. |
packages/chargeback/elasticsearch/transform/billing_cluster_cost/transform.yml |
Adds billing compatibility aggregations and dashboard aliases. |
packages/chargeback/elasticsearch/transform/billing_cluster_cost/fields/fields.yml |
Declares ESS Billing, credit, and cloud compatibility fields. |
packages/chargeback/docs/README.md |
Updates published collection and Fleet configuration guidance. |
packages/chargeback/data_stream/usage/manifest.yml |
Defines usage collection and allocation-weight controls. |
packages/chargeback/data_stream/usage/lifecycle.yml |
Defines 365-day usage retention. |
packages/chargeback/data_stream/usage/fields/fields.yml |
Declares collected index metrics and allocation settings. |
packages/chargeback/data_stream/usage/fields/base-fields.yml |
Declares usage stream identity and timestamp fields. |
packages/chargeback/data_stream/usage/elasticsearch/ingest_pipeline/default.yml |
Normalizes usage records, filters indices, and fingerprints events. |
packages/chargeback/data_stream/usage/agent/stream/cel.yml.hbs |
Discovers targets and harvests daily index-stat snapshots. |
packages/chargeback/data_stream/node_stats/manifest.yml |
Defines node collection and utilization controls. |
packages/chargeback/data_stream/node_stats/lifecycle.yml |
Defines 365-day node-stat retention. |
packages/chargeback/data_stream/node_stats/fields/fields.yml |
Declares node utilization metrics and configuration fields. |
packages/chargeback/data_stream/node_stats/fields/base-fields.yml |
Declares node-stat stream identity and timestamp fields. |
packages/chargeback/data_stream/node_stats/elasticsearch/ingest_pipeline/default.yml |
Handles node collection errors and ingestion timestamps. |
packages/chargeback/data_stream/node_stats/agent/stream/cel.yml.hbs |
Samples deployment JVM and filesystem metrics every 15 minutes. |
packages/chargeback/data_stream/lookup/lifecycle.yml |
Defines 365-day lookup-stream retention. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/usage.yml |
Adds monitoring-compatible fields and numeric timestamp handling. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/realized_pool.yml |
Supports numeric timestamps when constructing correlation keys. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/chargeback_conf.yml |
Unpacks per-stream settings and supplies configuration defaults. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/capacity_utilization.yml |
Supports numeric timestamps in utilization correlation keys. |
packages/chargeback/data_stream/lookup/elasticsearch/ingest_pipeline/billing.yml |
Populates ESS-compatible billing, credit, and cloud fields. |
packages/chargeback/data_stream/billing/manifest.yml |
Defines billing collection, currency, rate, and credit controls. |
packages/chargeback/data_stream/billing/lifecycle.yml |
Defines 365-day billing retention. |
packages/chargeback/data_stream/billing/fields/fields.yml |
Declares billing facts, metadata, credits, and currency settings. |
packages/chargeback/data_stream/billing/fields/base-fields.yml |
Declares billing stream identity and timestamp fields. |
packages/chargeback/data_stream/billing/elasticsearch/ingest_pipeline/default.yml |
Normalizes billing records and creates deduplication IDs. |
packages/chargeback/data_stream/billing/agent/stream/cel.yml.hbs |
Collects daily billing, metadata, and optional credit summaries. |
packages/chargeback/changelog.yml |
Records the 0.6.0 enhancement release. |
packages/chargeback/_dev/build/docs/README.md |
Updates the documentation source for the new collection model. |
Review effort: Max
This comment has been minimized.
This comment has been minimized.
left a comment
There was a problem hiding this comment.
🟡 Changes recommended
The usage CEL program cannot compile, and unresolved aggregation and configuration defects can inflate usage, overwrite manual settings, and misallocate costs.
17 open issues
Unchanged configuration snapshots expire without renewal · New Inconsistent source preference can allocate over 100% of cost · New Poll deltas are mislabeled as complete UTC daily usage · New Daily discovery misses indices created and deleted between snapshots · New Tier-settings failures silently default indices to hot · New CAT dataset size includes replicas in primary-only metrics · New Unclosed calls prevent the CEL program from compiling · New Changed document IDs leave duplicate rows in the existing destination · New Telemetry retriggers stale Fleet configuration writes · New Remote Chargeback aliases remain in legacy aggregation · New Repeated gauge snapshots inflate daily compatibility totals · New Invalid configuration values abort telemetry collection · New Credit snapshots lack the event.dataset required by the stock panel · New Requiring billing snapshots drops valid configuration settings · New Unescaped credentials with spaces break YAML harvesting · New Baseline matching performs quadratic work per harvest · New Runtime timestamp detection adds costly history scans · New
27 resolved since last review
Allow on-prem collection without Cloud credentials Avoid alias collision with the existing monitoring-indices index Preserve legacy monitoring-index sources without duplicate telemetry Retain legacy node-stat sources for utilization Map event.ingested for on-prem billing transform sync Migrate existing lookup mappings for newly added fields Prevent duplicate billing in the stock dashboard data view Preserve legacy ESS Billing sources during upgrades Retry failed daily harvests instead of marking them complete Calculate per-index activity from counter differences Replace unsupported CCS CAT fallback with a valid search Stop fabricating daily deltas from cumulative counters Preserve existing rates and non-overlapping configuration periods Use the billing API host for credit requests Normalize billing deployment IDs to telemetry resource IDs Include supported Observability and Security projects in realized pools Publish billing configuration updates independently of telemetry deduplication Determine stream health from latest telemetry freshness Wire memory and storage cost weights into dashboard queries Exclude only Chargeback lookup indices from allocation
And 7 more resolved.
Review effort: Max
left a comment
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical configuration and migration defects can overwrite manual settings, multiply historical charges, break allocation queries, and hide billing history after upgrades.
9 open issues
Historical enabled snapshot can authorize writes after sync is disabled · New Malformed effective date resets configuration window to 2010 · New Baseline observations inflate daily search totals · New 366-day rebuild drops older billing and contribution history · New Legacy-only installs cannot bootstrap the configuration lookup · New Disabled-sync snapshots can fall back to stale settings · New Upgrade leaves new usage_source fields unmapped · New Unvalidated weights can produce invalid cold-tier allocations · New Unmapped ingest timestamp causes daily billing rows to be missed · New
17 resolved since last review
Repeated gauge snapshots inflate daily compatibility totals Remote Chargeback aliases remain in legacy aggregation Telemetry retriggers stale Fleet configuration writes Changed document IDs leave duplicate rows in the existing destination Unclosed calls prevent the CEL program from compiling CAT dataset size includes replicas in primary-only metrics Tier-settings failures silently default indices to hot Daily discovery misses indices created and deleted between snapshots Poll deltas are mislabeled as complete UTC daily usage Inconsistent source preference can allocate over 100% of cost Unchanged configuration snapshots expire without renewal Runtime timestamp detection adds costly history scans Baseline matching performs quadratic work per harvest Unescaped credentials with spaces break YAML harvesting Requiring billing snapshots drops valid configuration settings Credit snapshots lack the event.dataset required by the stock panel Invalid configuration values abort telemetry collection
Review effort: Max
left a comment
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical defects can break transform searches, misstate billing and usage, and allow stale configuration snapshots to re-enable writes that overwrite manual settings.
14 open issues
Configuration signatures accept impossible calendar dates · New Fresh disabled policy sync fails to publish an opt-out marker · New Dropping zero-cost billing rows loses transfer quantities · New Billing and Usage rate fallbacks disagree on legacy installations · New Native samples can discard same-day legacy usage · New Daily rollups are incompatible with stock dashboard sampling · New Billing and realized-pool transforms select sources inconsistently · New Snapshot ordering by arrival can restore stale configuration · New Remote index exclusions use invalid syntax · New Billing backfill repeats discovery and project-list requests · New Three GCP regions have incorrect map coordinates · New Unexpected script failures are silently dropped · New Cloud discovery failures prevent Hub harvesting · New High-volume legacy events trigger unnecessary lookup reaggregation · New
9 resolved since last review
Upgrade leaves new usage_source fields unmapped Disabled-sync snapshots can fall back to stale settings Legacy-only installs cannot bootstrap the configuration lookup 366-day rebuild drops older billing and contribution history Baseline observations inflate daily search totals Malformed effective date resets configuration window to 2010 Historical enabled snapshot can authorize writes after sync is disabled Unmapped ingest timestamp causes daily billing rows to be missed Unvalidated weights can produce invalid cold-tier allocations
Review effort: Max
left a comment
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical defects in usage counters, native-data coverage, and billing synchronization can distort cost allocations and omit newly collected bills.
9 open issues
Retain legacy percentiles until native samples cover the day · New Require per-index coverage before replacing legacy usage · New Use event.created when checkpointing legacy billing records · New Use legacy counter deltas for consistent workload measurements · New Add ingest and CEL tests for new native streams · New Use distinct custom pipeline hooks for lookup streams · New Keep on-premises billing as a prerequisite for self-managed costs · New Align setup guide labels with Fleet manifest titles · New Put rate join keys and validity bounds in the upsert document · New
14 resolved since last review
Remote index exclusions use invalid syntax Snapshot ordering by arrival can restore stale configuration Billing and realized-pool transforms select sources inconsistently Daily rollups are incompatible with stock dashboard sampling Native samples can discard same-day legacy usage Billing and Usage rate fallbacks disagree on legacy installations Dropping zero-cost billing rows loses transfer quantities Fresh disabled policy sync fails to publish an opt-out marker Configuration signatures accept impossible calendar dates High-volume legacy events trigger unnecessary lookup reaggregation Cloud discovery failures prevent Hub harvesting Unexpected script failures are silently dropped Three GCP regions have incorrect map coordinates Billing backfill repeats discovery and project-list requests
Review effort: Max
commented
Nov 13, 2026
🚀 Benchmarks reportTo see the full report comment with |
left a comment
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved findings include cross-deployment credential exposure, a version rollback that blocks upgrades, and transform defects that can misallocate costs and cause excessive recomputation.
9 open issues
Remove unscoped API key fallback across deployments · New Restrict recomputation to changed usage days · New Advance the package version and preserve changelog history · New Select usage sources per index before aggregating totals · New Retain native zero-cost rows during source selection · New Detect interior gaps before replacing legacy utilization · New Exclude Chargeback telemetry from native coverage checks · New Preserve billing ID for unmatched deployment messages · New Allowlist the billing credits transform · New
9 resolved since last review
Use legacy counter deltas for consistent workload measurements Use event.created when checkpointing legacy billing records Require per-index coverage before replacing legacy usage Retain legacy percentiles until native samples cover the day Use distinct custom pipeline hooks for lookup streams Add ingest and CEL tests for new native streams Put rate join keys and validity bounds in the upsert document Align setup guide labels with Fleet manifest titles Keep on-premises billing as a prerequisite for self-managed costs
Review effort: Max
commented
Nov 16, 2026
|
Changelog link mismatch — expected
Tip If expected, add the |
|
Regarding #22427 (comment):
|
left a comment
•
There was a problem hiding this comment.
Review — Chargeback 0.6.0 self-collection
Code review of the new packages/chargeback package (CEL billing/usage/node_stats + transforms/lookups). Packaging path looks much healthier than earlier chargeback history (pipelines under data streams, keyword composite_key, versioned lookup aliases, secret redact).
Must fix
- Billing discovery
404treated as success — Deployments_search404 →{ ok: true, items: [] }lets the day advance without discovery data. Wrong base URL / missing route permanently under-attributes tags/region. (suggestion attached) - Usage
_shards.failedblocks deltas for the whole cluster — Partial shard failure keeps stale baselines. If it persists >24h, the next healthy poll emits ausage_observation_gapand no deltas; after >48h the baselines expire and the window is lost with no gap event at all. Needs a deliberate redesign (soft-fail / bounded hold) — left for author.
Should fix
- No fingerprint
_idon billing line items — credits fingerprint; line items don't → replay/cursor loss can double-count. (suggestion attached, mirroress_billing) - Auth key fallback doesn't short-circuit (usage + node_stats) — on 401/403 every remaining key is requested even after one succeeds, and the working key isn't persisted, so each poll repeats the failing attempts. Prefer ordered short-circuit + cache last-good key. Left for author.
- Conf transform sources — the 5m transform scans monitoring/metricbeat indices it never matches. Asked whether they're only needed to start the transform on monitoring-only assets installs, and whether that can be done more cheaply. (question, example source list attached)
- Legacy conf can clobber manual edits — with no Fleet snapshots, a transform reset/reinstall (e.g. package upgrade) re-applies the legacy
chargeback_conf_lookup*row over manual_id: configedits. Docs should require deleting the legacy index after carry-over. Left for author (docs). - New-group alert — filter empty
deployment_group(untagged deployments are normalized to""). (suggestion attached)
Nits
node_stats(andbilling) error docs terminate beforeevent.ingestedis set;usagestamps it first. (suggestion attached)- Missing-usage alert: join via
composite_key::keywordlike the dashboards, for consistency. (suggestion attached) - Serverless counter resets drop post-reset activity for one interval — noted only; the single-copy recovery must stay ECH-only (Serverless
sc: 1is synthetic, so removing the gate would over-count). - Credits missing →
0.0looks fully consumed; a real fix needs transform support (null would drop the credit line), so noted only.
Looks solid
- Version kept at 0.6.0 (upgrade-compatible with prior customer installs)
- Pipelines under data streams (Fleet zip-safe)
- Reset-aware usage baselines, midnight split, tier-arrival doesn’t dump lifetime
- Retryable billing failures generally hold cursor
- Keys not written into events; CEL state secret redact
Requesting changes on the two must-fixes. Inline suggestion blocks are included where the patch is localized; items 2, 4, 5, and 6 need author-owned design/docs.
commented
Nov 18, 2026
|
@luizgpsantos Thanks for the thorough review — all must-fix, should-fix, and consistency items from review
Ran locally against Elastic Stack |
| - custom | ||
| conditions: | ||
| kibana: | ||
| version: "^9.2.0" |
There was a problem hiding this comment.
is there a reason we are requiring this kibana version? also for format_version on the spec?
There was a problem hiding this comment.
Yes, that is required for the Lookup JOINs to work.
There was a problem hiding this comment.
Following up on format_version: 3.5.0: we use 3.5.0 for kibana/alerting_rule_template/ assets alongside deployment_modes (agentless: false) and elasticsearch.source_mode: synthetic on the metrics data streams.
There was a problem hiding this comment.
thanks for adding the system test on the data streams; when running system tests with --generate flag we can create the snapshot of a sample event we like to keep on the package
There was a problem hiding this comment.
Done in 9faef28 — ran elastic-package test system --generate to add sample_event.json (billing_line_item, index_usage, and node_sample) across billing, usage, and node_stats, and rebuilt docs/README.md.
| target: labels | ||
| fields: | ||
| test_run_id: "{{Test.RunID}}" | ||
| assert: |
There was a problem hiding this comment.
could we also assert on system tests any field we must have on this data stream? https://github.com/elastic/elastic-package/blob/main/docs/howto/system_testing.md assert.fields_present
There was a problem hiding this comment.
Added assert.fields_present in 9faef28 across node_stats, billing, and usage test-default-config.yml covering the required identity, metric, and configuration snapshot fields for each data stream.
…stem test assertions
left a comment
There was a problem hiding this comment.
All review items are addressed. The partial-shard fix in 9faef28 skips indices listed in _shards.failures[] and adds the sc/psc drop fallback, so baselines are preserved across a failed poll, and the 3-poll script test asserts exact recovery deltas. Thanks @JohannesMahne!
| title: "Chargeback Lookup Pipelines" | ||
| type: logs | ||
| dataset: chargeback.lookup | ||
| streams: [] |
There was a problem hiding this comment.
Same as it was reported in #22351, this data stream does not contain any streams configured (nor inputs).
It looks like that is just for the Ingest pipelines. Do you want to keep this as it is ?
There was a problem hiding this comment.
We would like to keep data_stream/lookup (streams: []) as a pipeline and pipeline-test container for two technical reasons:
- Moving the pipelines to package-root
elasticsearch/ingest_pipeline/fails Kibana's custom.zipFleet upload validator (isTopLevelPipeline, [Fleet] Validate uploaded packages before install kibana#286094) and loseselastic-package test pipelinesupport ([Meta] Validation of transforms defined in packages elastic-package#2394). - Moving them into
billing/usage/node_statswould either drop the 6 lookup pipeline unit tests underdata_stream/lookup/_dev/test/pipeline/(sincetest pipelineinvokes onlydefault.ymlper data stream) or require adding lookup fields andess_billing.*routing rules onto live data stream templates.
Keeping data_stream/lookup also preserves logs-chargeback.lookup-* pipeline names and logs-chargeback.lookup-*@custom upgrade hooks from 0.4.7/0.5.0.
commented
Nov 20, 2026
💚 Build Succeeded
History
|
commented
Nov 25, 2026
|
@mrodm Hi Mario - all review threads (including the |
| /packages/otel_rum_dashboards @elastic/apm-agent-rum | ||
| /packages/otel_android_dashboards @elastic/apm-agent-android @elastic/obs-signals-traces-approvers | ||
| /packages/otel_ios_dashboards @elastic/apm-agent-ios @elastic/obs-signals-traces-approvers | ||
| /packages/chargeback @elastic/customer-architects |
There was a problem hiding this comment.
It would be better to add this code owner entry ordered alphabetically with respect to the other packges.
commented
Nov 25, 2026
|
Package chargeback - 0.6.0 containing this change is available at https://epr.elastic.co/package/chargeback/0.6.0/ |



Proposed commit message
Add the
chargebackintegration (0.6.0) for FinOps cost visibility and tenant chargeback allocation across Elastic Cloud Hosted (ECH), Cloud Serverless, and self-managed / On-Premises Elasticsearch deployments, data tiers, and data streams.What & Why
Center of Excellence (CoE) and FinOps teams need a turnkey Fleet integration to convert billed Elastic consumption units (ECU/ERU) into normalized tenant costs and allocate realized data-tier and Serverless workload capacity across teams, namespaces, data tiers, and data streams:
Self-contained Elastic Agent CEL data streams (
billing,usage,node_stats) with existing-collector coexistence:chargeback.billing(metrics-chargeback.billing-*): collects daily ECH and Serverless SKU billing line items, deployment tags (chargeback_group:*), regions, rate configuration snapshots, and optional organization credit commitments (collect_ess_credits).chargeback.usage(metrics-chargeback.usage-*): collects 10-minute reset-aware per-index indexing, search, and storage usage across ECH deployments, self-managed Hub clusters (/_statsand/_settings), and Cloud Serverless projects (/_cat/indices), attributing midnight-crossing intervals across UTC days and surfacing observation gaps.chargeback.node_stats(metrics-chargeback.node_stats-*): samples 15-minute data-node JVM heap and filesystem disk utilization (/_nodes/_all/stats/jvm,fs) for daily p95 realized-cost capacity scoring..zipintegration (metrics-ess_billing.billing-onprem*), ESS Billing (metrics-ess_billing.billing-*), Elasticsearch Stack Monitoring /index_pivot(monitoring-indices*,.monitoring-es-*,metricbeat-*), and Cross-Cluster Search (*:monitoring-indices*), retaining legacy rollups until native samples cover contributing nodes and indices for the UTC day.Per-data-stream Fleet UI configuration &
chargeback_lookup.chargeback_confsync:organization_id,cloud_api_key,hub_es_url,hub_es_api_key,deployment_api_keys,sync_fleet_config,config_owner_id) live underElastic Cloud & Cluster Accesswith secrets encrypted in Fleet.lookbehind,currency_unit,unit_rate,onprem_unit_rate,config_effective_from,collect_ess_credits) live onchargeback.billing; blended workload weights (indexing_weight,query_weight,storage_weight) live onchargeback.usage; capacity utilization weights and floor (utilization_memory_weight,utilization_storage_weight,utilization_floor) live onchargeback.node_stats.chargeback_conf_lookuptransform writes intochargeback_lookup.dest_chargeback_conf-1(aliased aschargeback_lookup.chargeback_conf) with_id: config(Cloud ECU) and_id: config_onprem(On-Premises mERU), automatically carrying over pre-0.6.0chargeback_conf_lookupcustom rates/dates when no Fleetconfig_snapshotexists and preserving manual edits whensync_fleet_configis disabled.Nine continuous transforms,
lookup-mode indices, dashboards, alerts, and opt-in stock dashboard compatibility:chargeback_lookup.billing_cluster_cost,chargeback_lookup.billing_credits,chargeback_lookup.billing_realized_pool,chargeback_lookup.chargeback_conf,cluster_capacity_utilization_lookup,chargeback_lookup.cluster_deployment_contribution,chargeback_lookup.cluster_tier_contribution,chargeback_lookup.cluster_datastream_contribution, andchargeback_lookup.cluster_tier_and_datastream_contribution.[Chargeback] Billing Components Overview,[Chargeback] Usage and Cost Allocation,[Chargeback] Configuration), three Kibana alerting rule templates, and opt-in compatibility fields for stock ESS Billing, ESS Credits, and Elasticsearch Consumption dashboards.Versioning & Changelog Check Note (
0.6.0)0.6.0(do not reset to0.1.0):chargeback(0.1.0–0.5.0) was already shipped and installed in customer environments fromelastic/elasticsearch-chargeback. Keepingversion: 0.6.0onpackages/chargebackensures existing0.4.x/0.5.0clusters detect and upgrade cleanly to0.6.0when discovering the package in Fleet. (onprem_billingis intentionally not included in this PR and remains a standalone custom.zipintegration inelastic/elasticsearch-chargeback.)changelog-link-check:skip): Both0.6.0entries inpackages/chargeback/changelog.ymllink tohttps://github.com/elastic/integrations/pull/22427. Becausepackages/chargebackis new tomain, its preserved pre-0.6.0release history appears ingit diff origin/main, triggering the changelog link mismatch bot comment. Thechangelog-link-check:skiplabel is intentionally applied so historical release links are preserved.Checklist
changelog.ymlfile.Author's Checklist
0.6.0acrossmanifest.yml,changelog.yml, and all transform destination pipeline /fleet_transform_versionreferences (upgrading cleanly from prior0.4.x/0.5.0releases)._dev/test/pipeline) and mock-API CEL system tests (_dev/test/system) acrossbilling,usage, andnode_stats.elastic-package build,elastic-package check,elastic-package install,elastic-package test(asset, pipeline, static, system),mage check, andvaledocumentation linting pass cleanly.How to test this PR locally
elastic-package buildandelastic-package checkinsidepackages/chargeback.9.2.0+stack and runelastic-package installandelastic-package test -v..zipintegration for self-managed clusters) and verify[Chargeback] Billing Components Overview,[Chargeback] Usage and Cost Allocation, and[Chargeback] Configuration.Related issues
chargeback(0.6.0) intoelastic/integrations(onprem_billingremains a standalone custom.zipintegration inelastic/elasticsearch-chargeback)